package com.sg.dto.biz.bff.common;

import com.wicket.okrbff.common.annotations.TreeType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc BffDataListAllPathDto
 * @使用场景
 */
@Data
public class BffDataListAllPathDto implements Serializable {

    /**
     * 周期阶段资料记录ID
     */
    @ApiModelProperty("周期阶段资料记录ID")
    private String cycleStageDataId;

    /**
     * 资料图片概要明细地址
     */
    @ApiModelProperty("资料图片概要明细地址")
    private String datasetPrimarykey;
    /**
     * 消息ID
     */
    @ApiModelProperty("消息ID")
    private String messageId;
    /**
     * 自定义字段
     */
    @TreeType("fid")
    @ApiModelProperty("自定义字段")
    private String customField;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffDataListAllPathDto that = (BffDataListAllPathDto) o;
        return cycleStageDataId == that.cycleStageDataId && datasetPrimarykey == that.datasetPrimarykey && messageId == that.messageId && customField == that.customField;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), cycleStageDataId, datasetPrimarykey, messageId, customField);
    }

}
